Added databases and some tests for the databases.