implemented inserting into the database for 9 holes