not using activerecord