add schema.js file in app directory, clean up serve.js