Finished the class sans SQL code and fixed errors.