add functions to get info from the tables in DB_functions