A php sqlsrv database class