enclose activities.timestamp and activities.user in double quotes as PostgreSQL 9.3 complains about them being keywords