Cg+sql

Merges changes from CreepyGnome with my mac/sql/sqlite-net update/windowsphone code