Added sql queries for accounts