first pull request. some db functionality