Your database connection has nothing to do with the App Connect js code. You can debug the server side errors as explained here: