Simple PHP/MySQL API for JSON based Applications