moved check_for_db to mysql_db_functions. Started on table creation code