Added an insert method that executes the prepared statement.