removed db try catch