changes in db manager and deleted some references