Use sqlite database to track versions.