Added implements serializable to entities to be saved in the database