Changed db vars to private + modified the scheduler to account the db
changes