db_case_sensitive as Constant

Do not merge, just for discussion.. 
We currently create a database object just to check whether the database is case sensitive or not.. the idea is to check that earlier in the code and save it in a constant, so we can just validate if the constant is defined or not.

There are several more instances.. This is just an example for discussion. Opinions please?