Refactor QueryBuilder and Adapter to delegate to database adapter's prepared statement handling for sql injection protection and escaping.