Added prepare() and getResults() methods implementing prepared statements.