write 3 db functions
Merge pull request #1 from raymondjacobson/db-functions

write 3 db functions