Fix a couple of SQL import errors