Fixed the preparation db in case when it  hasn't been created yet