working on database's calls