Add functions to the Database class