Adding some db methods