got it connecting and inserting into the database
added hash class