Multiple improvements to handling requests: 400 on bad json request, 409 on MySQL duplicate error + unit tests added for MySQL error