(feat) Back-end refactor to request-handler.js; Tests written for server database relationship.