Catch error when requiring db provider