db functions update