ENH: WIP postgre support: write_frame & test modifications.