Make consistent use of prepared statements