Switched database connection class into collection of functions.
Database connection class replaced with set of functions.
Added more tests.