refactored steps and started adding db commands for step 1