This is an sql database class written in php