use activerecord to access mysql