update preparedstatement handling