Session & Security use prepared-statements.

We hit these queries a lot, so using prepared statements and always hitting the primary key to speed things up.