Fix double instantiation

The before_first_request directives ensures that SQLProvider is instantiated only once even in debug mode