First thing is to get with a tax accountant to find out how to use the shareholder accounts. This assumes you are taxed as an s-corp since you mention shareholder accounts.
S-corp shareholder account are not used the same as sole proprietor or partnership equity account at all.
You loan money to the company, the company uses it and then pays you back.