started db functions