create-db-functions