Fix awesome postgres model and use it