fix SQLiteDataStore queryVoted impl
move queryVoted test to seperate TestCase
fix uncaught exception in thread test escaped bug
faster impl of queryVoted
temp work