Fixed initializing databases