Use db_param to supply in all parameters

db_prepare_bool( true ); is required for proper support of pgsql.