fixed database_version insertion issue