Fixed issue with db version being set to wrong value
Merge pull request #2 from sikevux/master

Fixed issue with db_version being set to the wrong value