Add functions to db_interface.