select works and insert does not