Updated the DB_interface with new functions