Implement model object for postgresql 9