store version number in db