db functions getting there...