Class that realises the DAO pattern to create and store information from java objects fields in a database