Implementing more db api methods

...gories