Update server.js
Update server.js

1. removing repeated error logging for the same errors;
2. must reject when an error occurs;
3. removing useless condition for the `delete` operation
4. making code shorter
NYCPlanning/postgis-preview,NYCPlanning/postgis-preview