initializing databases