Added a seperate database class and started using the step method to parse sql instead of the exec command