Added proper 404 and other HTTP response code error handling. Also refractored out the controllers, db methods into separate filess. Will need to do proper dependency injection and services container.