Initial attempt at OS X support
Fixed all SQL operations being blocking operations - now results of operations are returned via a completion block