init db after restart