(practice) a simple json api server using koa and postgres