This an sql database class for php