finished refactoring to db singleton.
finished moving all db functionality to mysql_instance class
record base class now uses mysql_instance fo build and make queries