created some db access functions
it works