Postgres Split Table Into Two Tables