add in more database functions