Fix error in sqlite3 postauth query
Use "virtual_server", which is correct
Expand switch arguments once, instead of for each 'case'
Passing const to non-const