Added some db methods;