Added database features and figured out how to use. TODO: move DB stuff into a separate module