fixed issues with multi-line sql, and fixed issue with 'if not exists'
cleaned up file, and fixed getapi.php formatting.
changed around file structure.  it also actually works now ;p
copy paste syndrom fixed
changed to camel case naming convention
added 'if not exists' to sql