More specifc exception catching and stubbed db insertions for raw endpoint.