got the postgress insert and select statements to work