Refactor tests to use db.From<T> instead of db.SqlExpression<T>