switched to active record

both posts ans comments