what was the purpose of early banks

Check this fascinating article.

http://en.wikipedia.org/wiki/History_of_banking