#277 Database version upgrade added

Added function to update database version from older versions of Freeseer to the latest. Designed to be flexible for future changes.