added mysql classes to api.php