Added prepared_statement function to run prepared statements.