moved db/constants into common/config
return responses as application/json