Add support for fetching first result and cloning a select
Fix various bugs with default values and inserting