Rest API working directly on mysql database of a vanilla forum