Changed SQL to new model

All SQL queries are now going through a function in the dbManage class. This it to provide consitance and easy maintanence.