begin to access database