fixes issue #3 - Modified insertQuery to include id in results