Ajax create update destroy working properly, no tests implemented still getting locked db error