Added uninstall script
added set_db_version function