Added catch to database syncing problem