Implemented accounts resource and some db naming cleanup