adding more db functions