safemysql.class.php

from https://github.com/colshrapnel/safemysql/edit/master/safemysql.class.php