keep removing raw sql and create ruby class