Added a mangaer for adding and updating entity into the database