JSON to DB mapper