DB config is working now. Added some unit tests. More to come later