add wrapper for db
add some basic database functions