Simple php api for mysql databases