export database functions