added database functions today