Improve apiary_db class

Get rid of runSql stub that was left behind. Clean up code slightly.