Various changes, started styling, worked on main db class

Signed-off-by: Tom Green <kingofcuddles@gmail.com>