Trying to figure out SQLite asshattery