Fixed bug return 404 on database delete if not there