Added a version constant to software and database and recorded in db its version, solve partially #8