Initialize the databases