Postgresql Integer Null Insert Into Sql From Another Table