added few more db functions