added db prototype function to create_table()