Build a wizard, Mr Wizard.
Step 1: Select the DB... (SQLite / MySQL)
Step 2: Select the tables to produce an API for
Step 3: For each selected table, select the fields you want to use on the API.
Step 4: Generate the API code.
Step 5: b4x coder creates a project from your Web API Template
Step 6: Plug in your Wizard Generated Code
Step 7: Run your app.
PS: That way we won't have to learn and understand your code at all..

(Joking of course)