Switch from 'querySingle' to 'prepare and bindValue'