adding to database api functions