Added logger object into the database models