- refactored selectDb method to call mysql_select_db all the time it is invoked. This solves an issue on PHP 5.3.25 and mysql 5.5.31 on linux