can now save data to the database via hibernate
small fixes to sql statements
removed unused methods