handle potential exception if db is not under version control