added unit testing for database (disclosures db path :() and fixed singletons, update schema