Diaspora code review part05

worked on:
* use retract instead of destroy
* fixed postgresql compatibility