which means you havent updated the SQL qeuery to use that column. nas_query = "SELECT id, nasname, shortname, type, secret, server FROM ${nas_table}"