Fix minor bugs in SimpleDAL, the data access layer for SQ