Fixed bugs

conn is now db, naml grabs from right column