Major refactor - account

Moved select and insert query code to the DB class
Missed a line