Added helpers for preparing sql statements