php class to abstract mysql