Put database functions in a static class
Added a new ruleset to make line ending checks more sane