ends the first step of the db