fix missed __version__ declaration
fix changed import
begin storing last updated times in SQL
update the Instrument factory to read from the database