adds a helper to turn raw results to models
changes user activity to raw sql