Add basic task functions to db_interface.