added my database functions

used for querys and dbconnection setup