Added manager in database accessing