iOS DatabaseAdapter code generator

Performed some minimal testing with code generated. Code seems to work
at a basic level.