database catch added