Added beans usage to account_db_connector
Fixed a cuople of bugs