Added more code for db migration

Currently we can create the db_version tablee