Got the databases working. Added UTs for everything.