don't touch the sqlite! it fetches the unique id needed for adding a message. it seems to be easier than api way apparently and since it only reads one column through it shouldn't mess the db up.