initial import of db functions